package com.itcncp.ucenter.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UserAccountOpJnlExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    public UserAccountOpJnlExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTransNoIsNull() {
            addCriterion("trans_no is null");
            return (Criteria) this;
        }

        public Criteria andTransNoIsNotNull() {
            addCriterion("trans_no is not null");
            return (Criteria) this;
        }

        public Criteria andTransNoEqualTo(String value) {
            addCriterion("trans_no =", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoNotEqualTo(String value) {
            addCriterion("trans_no <>", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoGreaterThan(String value) {
            addCriterion("trans_no >", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoGreaterThanOrEqualTo(String value) {
            addCriterion("trans_no >=", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoLessThan(String value) {
            addCriterion("trans_no <", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoLessThanOrEqualTo(String value) {
            addCriterion("trans_no <=", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoLike(String value) {
            addCriterion("trans_no like", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoNotLike(String value) {
            addCriterion("trans_no not like", value, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoIn(List<String> values) {
            addCriterion("trans_no in", values, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoNotIn(List<String> values) {
            addCriterion("trans_no not in", values, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoBetween(String value1, String value2) {
            addCriterion("trans_no between", value1, value2, "transNo");
            return (Criteria) this;
        }

        public Criteria andTransNoNotBetween(String value1, String value2) {
            addCriterion("trans_no not between", value1, value2, "transNo");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andChangeBalanceIsNull() {
            addCriterion("change_balance is null");
            return (Criteria) this;
        }

        public Criteria andChangeBalanceIsNotNull() {
            addCriterion("change_balance is not null");
            return (Criteria) this;
        }

        public Criteria andChangeBalanceEqualTo(BigDecimal value) {
            addCriterion("change_balance =", value, "changeBalance");
            return (Criteria) this;
        }

        public Criteria andChangeBalanceNotEqualTo(BigDecimal value) {
            addCriterion("change_balance <>", value, "changeBalance");
            return (Criteria) this;
        }

        public Criteria andChangeBalanceGreaterThan(BigDecimal value) {
            addCriterion("change_balance >", value, "changeBalance");
            return (Criteria) this;
        }

        public Criteria andChangeBalanceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("change_balance >=", value, "changeBalance");
            return (Criteria) this;
        }

        public Criteria andChangeBalanceLessThan(BigDecimal value) {
            addCriterion("change_balance <", value, "changeBalance");
            return (Criteria) this;
        }

        public Criteria andChangeBalanceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("change_balance <=", value, "changeBalance");
            return (Criteria) this;
        }

        public Criteria andChangeBalanceIn(List<BigDecimal> values) {
            addCriterion("change_balance in", values, "changeBalance");
            return (Criteria) this;
        }

        public Criteria andChangeBalanceNotIn(List<BigDecimal> values) {
            addCriterion("change_balance not in", values, "changeBalance");
            return (Criteria) this;
        }

        public Criteria andChangeBalanceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("change_balance between", value1, value2, "changeBalance");
            return (Criteria) this;
        }

        public Criteria andChangeBalanceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("change_balance not between", value1, value2, "changeBalance");
            return (Criteria) this;
        }

        public Criteria andOldBalanceIsNull() {
            addCriterion("old_balance is null");
            return (Criteria) this;
        }

        public Criteria andOldBalanceIsNotNull() {
            addCriterion("old_balance is not null");
            return (Criteria) this;
        }

        public Criteria andOldBalanceEqualTo(BigDecimal value) {
            addCriterion("old_balance =", value, "oldBalance");
            return (Criteria) this;
        }

        public Criteria andOldBalanceNotEqualTo(BigDecimal value) {
            addCriterion("old_balance <>", value, "oldBalance");
            return (Criteria) this;
        }

        public Criteria andOldBalanceGreaterThan(BigDecimal value) {
            addCriterion("old_balance >", value, "oldBalance");
            return (Criteria) this;
        }

        public Criteria andOldBalanceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("old_balance >=", value, "oldBalance");
            return (Criteria) this;
        }

        public Criteria andOldBalanceLessThan(BigDecimal value) {
            addCriterion("old_balance <", value, "oldBalance");
            return (Criteria) this;
        }

        public Criteria andOldBalanceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("old_balance <=", value, "oldBalance");
            return (Criteria) this;
        }

        public Criteria andOldBalanceIn(List<BigDecimal> values) {
            addCriterion("old_balance in", values, "oldBalance");
            return (Criteria) this;
        }

        public Criteria andOldBalanceNotIn(List<BigDecimal> values) {
            addCriterion("old_balance not in", values, "oldBalance");
            return (Criteria) this;
        }

        public Criteria andOldBalanceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("old_balance between", value1, value2, "oldBalance");
            return (Criteria) this;
        }

        public Criteria andOldBalanceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("old_balance not between", value1, value2, "oldBalance");
            return (Criteria) this;
        }

        public Criteria andNowBalanceIsNull() {
            addCriterion("now_balance is null");
            return (Criteria) this;
        }

        public Criteria andNowBalanceIsNotNull() {
            addCriterion("now_balance is not null");
            return (Criteria) this;
        }

        public Criteria andNowBalanceEqualTo(BigDecimal value) {
            addCriterion("now_balance =", value, "nowBalance");
            return (Criteria) this;
        }

        public Criteria andNowBalanceNotEqualTo(BigDecimal value) {
            addCriterion("now_balance <>", value, "nowBalance");
            return (Criteria) this;
        }

        public Criteria andNowBalanceGreaterThan(BigDecimal value) {
            addCriterion("now_balance >", value, "nowBalance");
            return (Criteria) this;
        }

        public Criteria andNowBalanceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("now_balance >=", value, "nowBalance");
            return (Criteria) this;
        }

        public Criteria andNowBalanceLessThan(BigDecimal value) {
            addCriterion("now_balance <", value, "nowBalance");
            return (Criteria) this;
        }

        public Criteria andNowBalanceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("now_balance <=", value, "nowBalance");
            return (Criteria) this;
        }

        public Criteria andNowBalanceIn(List<BigDecimal> values) {
            addCriterion("now_balance in", values, "nowBalance");
            return (Criteria) this;
        }

        public Criteria andNowBalanceNotIn(List<BigDecimal> values) {
            addCriterion("now_balance not in", values, "nowBalance");
            return (Criteria) this;
        }

        public Criteria andNowBalanceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("now_balance between", value1, value2, "nowBalance");
            return (Criteria) this;
        }

        public Criteria andNowBalanceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("now_balance not between", value1, value2, "nowBalance");
            return (Criteria) this;
        }

        public Criteria andTransTimestampIsNull() {
            addCriterion("trans_timestamp is null");
            return (Criteria) this;
        }

        public Criteria andTransTimestampIsNotNull() {
            addCriterion("trans_timestamp is not null");
            return (Criteria) this;
        }

        public Criteria andTransTimestampEqualTo(Date value) {
            addCriterion("trans_timestamp =", value, "transTimestamp");
            return (Criteria) this;
        }

        public Criteria andTransTimestampNotEqualTo(Date value) {
            addCriterion("trans_timestamp <>", value, "transTimestamp");
            return (Criteria) this;
        }

        public Criteria andTransTimestampGreaterThan(Date value) {
            addCriterion("trans_timestamp >", value, "transTimestamp");
            return (Criteria) this;
        }

        public Criteria andTransTimestampGreaterThanOrEqualTo(Date value) {
            addCriterion("trans_timestamp >=", value, "transTimestamp");
            return (Criteria) this;
        }

        public Criteria andTransTimestampLessThan(Date value) {
            addCriterion("trans_timestamp <", value, "transTimestamp");
            return (Criteria) this;
        }

        public Criteria andTransTimestampLessThanOrEqualTo(Date value) {
            addCriterion("trans_timestamp <=", value, "transTimestamp");
            return (Criteria) this;
        }

        public Criteria andTransTimestampIn(List<Date> values) {
            addCriterion("trans_timestamp in", values, "transTimestamp");
            return (Criteria) this;
        }

        public Criteria andTransTimestampNotIn(List<Date> values) {
            addCriterion("trans_timestamp not in", values, "transTimestamp");
            return (Criteria) this;
        }

        public Criteria andTransTimestampBetween(Date value1, Date value2) {
            addCriterion("trans_timestamp between", value1, value2, "transTimestamp");
            return (Criteria) this;
        }

        public Criteria andTransTimestampNotBetween(Date value1, Date value2) {
            addCriterion("trans_timestamp not between", value1, value2, "transTimestamp");
            return (Criteria) this;
        }

        public Criteria andResumeIsNull() {
            addCriterion("resume is null");
            return (Criteria) this;
        }

        public Criteria andResumeIsNotNull() {
            addCriterion("resume is not null");
            return (Criteria) this;
        }

        public Criteria andResumeEqualTo(String value) {
            addCriterion("resume =", value, "resume");
            return (Criteria) this;
        }

        public Criteria andResumeNotEqualTo(String value) {
            addCriterion("resume <>", value, "resume");
            return (Criteria) this;
        }

        public Criteria andResumeGreaterThan(String value) {
            addCriterion("resume >", value, "resume");
            return (Criteria) this;
        }

        public Criteria andResumeGreaterThanOrEqualTo(String value) {
            addCriterion("resume >=", value, "resume");
            return (Criteria) this;
        }

        public Criteria andResumeLessThan(String value) {
            addCriterion("resume <", value, "resume");
            return (Criteria) this;
        }

        public Criteria andResumeLessThanOrEqualTo(String value) {
            addCriterion("resume <=", value, "resume");
            return (Criteria) this;
        }

        public Criteria andResumeLike(String value) {
            addCriterion("resume like", value, "resume");
            return (Criteria) this;
        }

        public Criteria andResumeNotLike(String value) {
            addCriterion("resume not like", value, "resume");
            return (Criteria) this;
        }

        public Criteria andResumeIn(List<String> values) {
            addCriterion("resume in", values, "resume");
            return (Criteria) this;
        }

        public Criteria andResumeNotIn(List<String> values) {
            addCriterion("resume not in", values, "resume");
            return (Criteria) this;
        }

        public Criteria andResumeBetween(String value1, String value2) {
            addCriterion("resume between", value1, value2, "resume");
            return (Criteria) this;
        }

        public Criteria andResumeNotBetween(String value1, String value2) {
            addCriterion("resume not between", value1, value2, "resume");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}